package com.duing.dao;

import com.duing.entity.Bookshelf;

import java.util.List;

public interface BookshelfMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Bookshelf record);

    Bookshelf selectByPrimaryKey(Long id);

    Bookshelf selectByUserAndBook(String userId,String bookId);

    List<Bookshelf> selectAll();

    int updateByPrimaryKey(Bookshelf record);

    List<Bookshelf> selectAllByUser();

    int deleteByUserAndBook(String userId,String bookId);
}